<?=$this->load->view('public/v_html')?>
<title><?=$this->_lang['geili']?></title>
<script language="javascript">

$(document).ready(function (){
	$("input[name=get_goods]").click(function (){
		text = $.trim($("input[name=search]").val());
	$("#get_info").html("<img src='<?=base_url('images/loading.gif') ?>'/>");
	$.ajax({
		type:'POST',
		datatype:'html',
		url:'<?=base_url('index.php/tbk/get_goods')?>',
		data:{"search":text},
		success:function (result){
			eval("var ret = "+result);
			if(ret.error == 1){
				alert(ret.msg);
				$("#get_info").html('');
			}
			else{
				$("#get_info").html(ret.html);
			}
		}
		})	
	})
})

</script>
<script type="text/javascript">
alimama_pid="mm_17750613_3303167_10764668";
alimama_width=200;
alimama_height=200;
alimama_displaytype= "c";
</script>
<script src="http://a.alimama.cn/inf.js" type="text/javascript"></script>
<style>
#body{margin:0;padding:0;font-size:12px;color:black;}
#header{height:120px;margin:20px 20px;}
#header .header_l{float:left;}
#header .header_r{float:right;}
.clear{clear:both;}
#logo{text-align:center;height:90px}
#logo img{margin:auto;}
#search{margin:auto;text-align:center;}
#search .banner{line-height:30px;margin-botton:50px}
#footer{font-size:12px;text-align:center;line-height:30px;}
#footer a{color:black;}
#get_info{margin:10px 0;}
.s_ipt{
	width: 405px;height: 22px;
font: 16px/22px arial;
margin: 5px 0 0 7px;
background: white;
outline: none;
-webkit-appearance: none;	
}
.lianhe li{
	width:230px
}

</style>
</head>
<body>
<?=$this->load->view('public/v_banner')?>
<div id="body">
	<div id="header">
		<div class="header_r">
		<? if($usermail){ echo "<a href=".site_url('user/index/index') ." title='点击进入个人中心'>".$usermail."</a>,您好&nbsp;<a href=".site_url('public/signin/singnout') .">退出</a>"; }
							else{echo "<a href=".site_url ( 'public/signin/into' ).">登陆</a>&nbsp;<a href=".site_url('public/signin/index') .">注册</a>"; } ?>
		</div>
		<div class="header_l">											
<iframe width="63" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=63&height=24&uid=1707534817&style=1&btn=red&dpc=1"></iframe>
		</div>
<div class="clear"></div>
</div>
	<div id="logo"><img src="<?=base_url('images/logo/logo2.png')?>" height="40px" width="100px" /></div>			
	<div id="search">
		<div class="banner">
			<a href="http://www.geili0574.com/index.php/tbk">逛街</a>
			<a href="http://www.geili0574.com/index.php/mall">商城</a>
			<a href="http://www.geili0574.com/index.php/help">帮助</a>
			<a href="http://www.geili0574.com/index.php/green">通道</a>
			<div>
		<input type="text" maxlength="100" autocomplete="off" name="search" id="search_good" class="s_ipt"
										onblur="if(this.value==''){this.value='<?=$this->_lang['search']?>'};"
										value="<?=$this->_lang['search']?>"
										onclick="if(this.value=='<?=$this->_lang['search']?>'){this.value=''}" />
									<input type="button"  class="s_btn" name="get_goods" value="<?=$this->_lang['tbk_search']?>"/>
		<center>
		 <div id="get_info"></div>
		 </center>
	</div>
	</div>
	<div id="footer">
	  <div class="link">友情链接:<a href="http://zhaizhaixiaofu.taobao.com/" target="_blank">宅宅小腐</a>&nbsp;&nbsp;<a href="http://shop72378625.taobao.com/" target="_blank">小璐小A的珠宝店</a></div>
	  <div class="copy_right">
	  <?=$this->_lang['copy_right']?> | Powered by <a href="http://www.geili0574.com">TBCOM</a> | <a href="#">Top</a>	
	  </div>

	</div>
	<div id="user_load" style="display:none">
					<div style="float:left">
					<p>账号密码登入</p>
							<form  action="<?=site_url('public/signin/into_veirtf') ?>"
								target="" method="post">
								<p style="margin-top:20px">
									<?=$this->_lang['mail']?>
										<input  type="text" name="usermail" placeholder="<?=$this->_lang['reg']?>" />
										<!-- <span class="pass_login_err" id="pass_login_username_0_err"><?=$this->_lang['enter_mail']?></span> -->
								</p>
								<p >
									<?=$this->_lang['pwd']?>
										<input  type="password"  name="password" />
								</p>
								<p >
									<input type="submit" value="<?=$this->_lang['login_submit']?>">
									<a href="<?=site_url('public/getpass') ?>" ><?=$this->_lang['forget_pwd']?></a>
								</p>
							</form>
					</div>
					<div style="float:left ;margin-left:30px">
					<p>快捷登录</p>
					<UL class="lianhe">
					<LI><a href="<?=site_url('login/qq')?>"><img
							src="<?=base_url('images/qq.png')?>" />QQ登录</a></LI>
					<LI><a href="<?=site_url('login/sina')?>"><img
							src="<?=base_url('images/sina.png')?>" />微博登录</a></LI>
					<LI><a href="<?=site_url('login/neteasy')?>"><img
							src="<?=base_url('images/163.png')?>" />网易登录</a></LI>
				</UL>
					</div>
					<div style="clear:both"></div>
	</div>
	<script language="javascript">
$("#search_good").keydown(function (e){
	if(e.keyCode == 13){
		$("#get_info").html("<img src='<?=base_url('images/loading.gif') ?>'/>");
		$.ajax({
			type:'POST',
			datatype:'json',
			url:"<?=base_url('index.php/tbk/get_goods')?>",
			data:{"search":$("input[name=search]").val()},
			success:function (result){
				eval("var ret = "+result);
				if(ret.error==1)
				{
					alert(ret.msg);
					$("#get_info").html('');
				}
				else{
					$("#get_info").html(ret.html);
					
				}	
			}
			})
		}
	});
});
</script>
</body>
</html>
